package com.example.musicplatform.common;

/**
 * @Author: caowj1217
 * @Date: 2021/7/23下午1:36
 * @Description:
 */
public class Constants {

    public static final String DEFAULT_CHARSET = "utf8";

    public static final int ADMIN_USER = 0;
    public static final int NORMAL_USER = 1;

    public static final String PARAM_NULL_CODE = "1001";
    public static final String PARAM = "参数不能为空";

    public static final String USERNAME_OR_PASSWORD_ERROR_CODE = "1002";
    public static final String USERNAME_OR_PASSWORD_ERROR_MSG = "用户名或密码错误";

    public static final String USER_SESSION_ISNULL_CODE = "1003";
    public static final String USER_SESSION_ISNULL_MSG = "用户没有登录";

    public static final String OLDPASSWORD_ERROR_CODE = "1004";
    public static final String OLDPASSWORD_ERROR_MSG = "旧密码错误";

    public static final String NEWPASSWORD_NOTEQUALS_REPEATPASSWORD_CODE = "1005";
    public static final String NEWPASSWORD_NOTEQUALS_REPEATPASSWORD_MSG = "新密码不等于旧密码";

    public static final String PARAMS_INVALID_CODE = "1006";
    public static final String PARAMS_INVALID_MSG = "参数不合法 ";

    public static final String MUSIC_SUCCESS_CODE = "2001";
    public static final String MUSIC_SUCCESS_MSG = "音乐获取成功";

    public static final String MUSIC_ERROR_CODE = "2002";
    public static final String MUSIC_ERROR_MSG = "音乐获取失败";
}
